import request from '@/utils/request'

//获取
export function listData(data) {
  return request({
    url: '/config/productPhoto/',
    method: 'get',
    params: data
  })
}
//新增
export function addData(data) {
  return request({
    url: '/config/productPhoto/',
    method: 'post',
    data
  })
}
//编辑
export function updateData(data) {
  return request({
    url: '/config/productPhoto/',
    method: 'put',
    data:data
  })
}
//获取详情
export function getDetail(id) {
  return request({
    url: '/config/productPhoto/' + id,
    method: 'get',
  })
}
//删除
export function delData(id) {
  return request({
    url: '/config/productPhoto/' + id,
    method: 'delete',
  })
}

